import http from '@/utils/http'
// 添加收货地址
export function postMemberAddressAPI (data) {
  return http({
    url: '/member/address',
    method: 'POST',
    data
  })
}

// 获取收货地址列表
export function getMemberAddressAPI () {
  return http({
    url: '/member/address'
  })
}
// 删除收货地址
export function delMemberAddressAPI (id) {
  return http({
    url: `/member/address/${id}`,
    method: 'DELETE'
  })
}
// 获取收货地址详情
export function delMemberAddressDetailAPI (id) {
  return http({
    url: `/member/address/${id}`
  })
}
// 修改收货地址
export function delMemberAddressAlterAPI (data, id) {
  return http({
    url: `/member/address/${id}`,
    method: 'PUT',
    data
  })
}
